package com.huilian.iotbox.mqtt.server.base.dao;

import com.huilian.iotbox.data.dto.OrderDto;
import com.huilian.iotbox.data.po.Order;
import com.huilian.iotbox.data.vo.OrderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 谢洛涛
 * @date 2021/1/9 12:22
 */
@Mapper
public interface OrderDao {

    Integer insert(OrderDto orderDto);

    OrderDto getById(Long orderId);

    Integer updateStatusById(Order order);

    Order findOneOrderByCondition(Order condition);

    Integer updateShipmentStatusById(Order order);

    Integer updateById(Order order);

    OrderVo findOrderListByApplet(OrderDto orderDto);

    OrderVo findByPayNo(String payNo,String deviceNo);
}
